import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/userModule'
import getters from './getters'

Vue.use(Vuex)

const store = new Vuex.Store({
    modules: {
        user
    },
    state: {
        pageName: 'index',
    },
    mutations: {
        changePage(state, name) {
            state.pageName = name
        },
    },
    actions: {

    },
    getters,
})
export default store
